<?php
/*
 *DB配置类
 */
class DBConfig {
	private static $config=array('dbhost'=>'',
								 'dbuser'=>'',
								 'dbpw'=>'',
								 'dbname'=>'',
								 'charset'=>'');
	public static function setConfig(array $options)
	{
		foreach(self::$config as $k=>$val){
			self::$config[$k] = $options[$k];
		}
	}
	public static function getConfig()
	{
		return self::$config;
	}
}